import scrapy
from imgsPro.items import ImgsproItem

class ImgSpider(scrapy.Spider):
    name = "img"
    # allowed_domains = ["www.xxx.com"]
    start_urls = ["https://sc.chinaz.com/tupian/"]

    def parse(self, response):
        div_list = response.xpath('')
        for div in div_list:
            # 注意：使用伪属性
            src = div.xpath('').extract_first()
            # print(src)

            item = ImgsproItem()
            item['src'] = src

            yield item